#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);

    connect(this->ui->btnA, SIGNAL(textChanged(QString)),
            ui->textEdit, SLOT(append(QString)));
    connect(ui->btnB, SIGNAL(textChanged(QString)),
            ui->textEdit, SLOT(append(QString)));
    connect(ui->btnC, SIGNAL(textChanged(QString)),
            ui->textEdit, SLOT(append(QString)));

    connect(ui->btnClose, SIGNAL(clicked()),
            this, SLOT(close()));
}

Widget::~Widget()
{
    delete ui;
}
